<!DOCTYPE html><html lang="zh-Hans"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="description" content="iOS基础知识"><meta name="keywords" content=""><meta name="author" content="kyren"><meta name="copyright" content="kyren"><title>iOS基础知识 | Kyren's Blog</title><link rel="shortcut icon" href="/melody-favicon.ico"><link rel="stylesheet" href="/css/index.css?version=1.9.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css?version=1.9.0"><meta name="format-detection" content="telephone=no"><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="dns-prefetch" href="https://hm.baidu.com"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cf87fcdbd9ab7cf93d894f7c219ae78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();</script><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><script src="https://v1.hitokoto.cn/?encode=js&amp;charset=utf-8&amp;select=.footer_custom_text" defer></script><script>var GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容:${query}"}},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  hexoVersion: '6.2.0'
} </script><meta name="generator" content="Hexo 6.2.0"></head><body><i class="fa fa-arrow-right" id="toggle-sidebar" aria-hidden="true"></i><div id="sidebar" data-display="true"><div class="toggle-sidebar-info text-center"><span data-toggle="切换文章详情">切换站点概览</span><hr></div><div class="sidebar-toc"><div class="sidebar-toc__title">目录</div><div class="sidebar-toc__progress"><span class="progress-notice">你已经读了</span><span class="progress-num">0</span><span class="progress-percentage">%</span><div class="sidebar-toc__progress-bar"></div></div><div class="sidebar-toc__content"></div></div><div class="author-info hide"><div class="author-info__avatar text-center"><img src="https://avatars.githubusercontent.com/u/5827823?v=4"></div><div class="author-info__name text-center">kyren</div><div class="author-info__description text-center">huluo的技术博客</div><div class="follow-button"><a target="_blank" rel="noopener" href="https://github.com/huluo666">Follow Me</a></div><hr><div class="author-info-articles"><a class="author-info-articles__archives article-meta" href="/archives"><span class="pull-left">文章</span><span class="pull-right">239</span></a><a class="author-info-articles__tags article-meta" href="/tags"><span class="pull-left">标签</span><span class="pull-right">41</span></a><a class="author-info-articles__categories article-meta" href="/categories"><span class="pull-left">分类</span><span class="pull-right">29</span></a></div><hr><div class="author-info-links"><div class="author-info-links__title text-center">Links</div><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:9090/">Jira</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:8090/">Confluence</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://bloc.leniugame.com/">Leniu</a></div></div></div><div id="content-outer"><div class="no-bg" id="top-container"><div id="page-header"><span class="pull-left"> <a id="site-name" href="/">Kyren's Blog</a></span><i class="fa fa-bars toggle-menu pull-right" aria-hidden="true"></i><span class="pull-right menus">   <a class="site-page" href="/">主页</a><a class="site-page" href="/essay">随笔</a><a class="site-page" href="/archives">归档</a><a class="site-page" href="/tags">标签</a><a class="site-page" href="/categories">分类</a><a class="site-page" href="/about">关于</a></span><span class="pull-right"><a class="site-page social-icon search"><i class="fa fa-search"></i><span> 搜索</span></a></span></div><div id="post-info"><div id="post-title">iOS基础知识</div><div id="post-meta"><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-03-30</time></div></div></div><div class="layout" id="content-inner"><article id="post"><div class="article-container" id="post-content"><p>NSString为何要用copy，而不是strong？</p>
<p>NSString、NSArray、NSDictionary等等经常使用copy关键字，是因为他们有对应的<code>可变类型</code>：NSMutableString、NSMutableArray、NSMutableDictionary，为确保对象中的属性值不会无意间变动，应该在设置新属性值时拷贝一份，保护其封装性</p>
<figure class="highlight objectivec"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">@property</span> (<span class="keyword">nonatomic</span>,<span class="keyword">strong</span>) <span class="built_in">NSString</span> *str_strong;</span><br><span class="line"><span class="keyword">@property</span> (<span class="keyword">nonatomic</span>,<span class="keyword">copy</span>)   <span class="built_in">NSString</span> *str_copy;</span><br><span class="line"></span><br><span class="line">- (<span class="type">void</span>)viewDidLoad &#123;</span><br><span class="line">    [<span class="variable language_">super</span> viewDidLoad];</span><br><span class="line">    <span class="comment">// Do any additional setup after loading the view, typically from a nib.</span></span><br><span class="line">    <span class="keyword">self</span>.str_strong=<span class="string">@&quot;iOS&quot;</span>;</span><br><span class="line">    <span class="keyword">self</span>.str_copy=<span class="string">@&quot;iOS&quot;</span>;</span><br><span class="line">    <span class="built_in">NSMutableString</span> *mstr=[[<span class="built_in">NSMutableString</span> alloc]initWithString:<span class="string">@&quot;iOS&quot;</span>];</span><br><span class="line">    <span class="keyword">self</span>.str_strong=mstr;</span><br><span class="line">    <span class="keyword">self</span>.str_copy=mstr;</span><br><span class="line">    <span class="comment">//修改NSMutableString字符串</span></span><br><span class="line">    [mstr appendString:<span class="string">@&quot;开发&quot;</span>];</span><br><span class="line">    <span class="built_in">NSLog</span>(<span class="string">@&quot;str_strong=%@&quot;</span>,<span class="keyword">self</span>.str_strong);</span><br><span class="line">    <span class="built_in">NSLog</span>(<span class="string">@&quot;str_copy=%@&quot;</span>,<span class="keyword">self</span>.str_copy);</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="comment">//NSLog信息</span></span><br><span class="line"><span class="number">11</span>:<span class="number">34</span>:<span class="number">43.062460</span>+<span class="number">0800</span> iOSInterview[<span class="number">3915</span>:<span class="number">356342</span>] str_strong=iOS开发</span><br><span class="line"><span class="number">11</span>:<span class="number">34</span>:<span class="number">43.063298</span>+<span class="number">0800</span> iOSInterview[<span class="number">3915</span>:<span class="number">356342</span>] str_copy=iOS</span><br></pre></td></tr></table></figure>



<p>算法</p>
<p>二分查找(也叫折半查找)，是至今应用比较多的一种搜索算法。速度快，比较次数少。</p>
<figure class="highlight objectivec"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/** 代码执行时间*/</span></span><br><span class="line"><span class="built_in">CGFloat</span> TIME_BLOCKWithkey (<span class="built_in">NSString</span> *key,<span class="type">void</span> (^block)(<span class="type">void</span>)) &#123;</span><br><span class="line">    <span class="built_in">NSTimeInterval</span> startTime = <span class="built_in">CACurrentMediaTime</span>();</span><br><span class="line">    block ();</span><br><span class="line">    <span class="built_in">CFTimeInterval</span> elapsedTime = <span class="built_in">CACurrentMediaTime</span>() - startTime;</span><br><span class="line">    <span class="built_in">NSLog</span>(<span class="string">@&quot;%@ executionTime = %f ms&quot;</span>,key,elapsedTime *<span class="number">1000.0</span>);</span><br><span class="line">    <span class="keyword">return</span> (<span class="built_in">CGFloat</span>)elapsedTime / <span class="built_in">NSEC_PER_SEC</span>;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">- (<span class="type">void</span>)viewDidLoad &#123;</span><br><span class="line">    [<span class="variable language_">super</span> viewDidLoad];</span><br><span class="line">    <span class="comment">// Do any additional setup after loading the view, typically from a nib.</span></span><br><span class="line">    <span class="built_in">NSMutableArray</span> *sortedArray=[<span class="built_in">NSMutableArray</span> array];</span><br><span class="line">    <span class="keyword">for</span> (<span class="type">int</span> i=<span class="number">0</span>; i&lt;<span class="number">1000000</span>; i++) &#123;</span><br><span class="line">        [sortedArray addObject:@(i)];</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="type">id</span> searchObject =@<span class="number">88888</span>;</span><br><span class="line"></span><br><span class="line">    TIME_BLOCKWithkey(<span class="string">@&quot;普通查找&quot;</span>, ^&#123;</span><br><span class="line">        <span class="built_in">NSUInteger</span> findIndex=[sortedArray indexOfObject:searchObject];</span><br><span class="line">        <span class="built_in">NSLog</span>(<span class="string">@&quot;findIndex=%zd&quot;</span>,findIndex);</span><br><span class="line">    &#125;);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">    TIME_BLOCKWithkey(<span class="string">@&quot;二分查找&quot;</span>, ^&#123;</span><br><span class="line">        <span class="built_in">NSRange</span> searchRange = <span class="built_in">NSMakeRange</span>(<span class="number">0</span>, [sortedArray count]);</span><br><span class="line">        <span class="built_in">NSUInteger</span> findIndex = [sortedArray indexOfObject:searchObject</span><br><span class="line">                                            inSortedRange:searchRange</span><br><span class="line">                                                  options:<span class="built_in">NSBinarySearchingFirstEqual</span></span><br><span class="line">                                          usingComparator:^(<span class="type">id</span> obj1, <span class="type">id</span> obj2)</span><br><span class="line">                                &#123;</span><br><span class="line">                                    <span class="keyword">return</span> [obj1 compare:obj2];</span><br><span class="line">                                &#125;];</span><br><span class="line">        <span class="built_in">NSLog</span>(<span class="string">@&quot;findIndex=%zd&quot;</span>,findIndex);</span><br><span class="line">    &#125;);</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="comment">//NSLog信息</span></span><br><span class="line"><span class="number">13</span>:<span class="number">59</span>:<span class="number">23.806081</span>+<span class="number">0800</span> iOSInterview[<span class="number">5087</span>:<span class="number">608690</span>] 普通查找 executionTime = <span class="number">8.262457</span> ms</span><br><span class="line"><span class="number">13</span>:<span class="number">59</span>:<span class="number">23.806208</span>+<span class="number">0800</span> iOSInterview[<span class="number">5087</span>:<span class="number">608690</span>] findIndex=<span class="number">88888</span></span><br><span class="line"><span class="number">13</span>:<span class="number">59</span>:<span class="number">23.806340</span>+<span class="number">0800</span> iOSInterview[<span class="number">5087</span>:<span class="number">608690</span>] 二分查找 executionTime = <span class="number">0.136384</span> ms</span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/8a54c26a9349">https://www.jianshu.com/p/8a54c26a9349</a></p>
<p><a target="_blank" rel="noopener" href="http://c.biancheng.net/cpp/html/2744.html">C语言二分查找（折半查找）算法及代码</a></p>
<p>一，在程序里，交换2个数，我使用了异或来处理。这个可以根据个人喜好。为了避免产生临时变量，可以使用如下几种方式来交换2个数：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><span class="line">// 1.中间变量</span><br><span class="line">void swap(int a, int b) &#123;</span><br><span class="line">	int temp;</span><br><span class="line"> 	temp= a;</span><br><span class="line">	  a = b;</span><br><span class="line">	  b = temp;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">// 2.加法</span><br><span class="line">void swap(int a, int b) &#123;</span><br><span class="line">	a = a + b;</span><br><span class="line">	b = a - b;</span><br><span class="line">	a = a - b;</span><br><span class="line"></span><br><span class="line">	or</span><br><span class="line">	a = a+b-(b=a);</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">// 3.异或（相同为0，不同为1. 可以理解为不进位加法）</span><br><span class="line">void swap(int a, int b) &#123;</span><br><span class="line">	a = a ^ b;</span><br><span class="line">	b = a ^ b;</span><br><span class="line">	a = a ^ b;</span><br><span class="line">	或</span><br><span class="line">    a^=b;</span><br><span class="line">    b^=a;</span><br><span class="line">    a^=b</span><br><span class="line"></span><br><span class="line">    或</span><br><span class="line">     a ^= b ^= a ^= b;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">std libs</span><br><span class="line">std::swap(a,b);</span><br></pre></td></tr></table></figure>



<ol>
<li><p><strong>设计模式是什么？ 你知道哪些设计模式，并简要叙述？</strong></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">设计模式是一种编码经验，就是用比较成熟的逻辑去处理某一种类型的事情。</span><br><span class="line">1). MVC模式：Model View Control，把模型 视图 控制器 层进行解耦合编写。</span><br><span class="line">2). MVVM模式：Model View ViewModel 把模型 视图 业务逻辑 层进行解耦和编写。</span><br><span class="line">3). 单例模式：通过static关键词，声明全局变量。在整个进程运行期间只会被赋值一次。</span><br><span class="line">4). 观察者模式：KVO是典型的通知模式，观察某个属性的状态，状态发生变化时通知观察者。</span><br><span class="line">5). 委托模式：代理+协议的组合。实现1对1的反向传值操作。</span><br><span class="line">6). 工厂模式：通过一个类方法，批量的根据已有模板生产对象。</span><br></pre></td></tr></table></figure></li>
</ol>
<p><strong>2、MVC 和 MVVM 的区别</strong></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">1). MVVM是对胖模型进行的拆分，其本质是给控制器减负，将一些弱业务逻辑放到VM中去处理。</span><br><span class="line">2). MVC是一切设计的基础，所有新的设计模式都是基于MVC进行的改进。</span><br></pre></td></tr></table></figure>



<p>一、非集合类对象的copy与mutableCopy</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"> 在非集合类对象中，对不可变对象进行copy操作，是指针复制，mutableCopy操作是内容复制；</span><br><span class="line"> 对可变对象进行copy和mutableCopy都是内容复制。用代码简单表示如下：</span><br><span class="line">NSString *str = @&quot;hello word!&quot;;</span><br><span class="line">NSString *strCopy = [str copy] // 指针复制，strCopy与str的地址一样</span><br><span class="line">NSMutableString *strMCopy = [str mutableCopy] // 内容复制，strMCopy与str的地址不一样</span><br><span class="line"></span><br><span class="line">NSMutableString *mutableStr = [NSMutableString stringWithString: @&quot;hello word!&quot;];</span><br><span class="line">NSString *strCopy = [mutableStr copy] // 内容复制</span><br><span class="line">NSMutableString *strMCopy = [mutableStr mutableCopy] // 内容复制</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">只有对不可变对象进行copy操作是指针复制（浅复制），其它情况都是内容复制（深复制）！</span><br></pre></td></tr></table></figure>



<p><strong>什么是 KVO 和 KVC？</strong></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">1). KVC(Key-Value-Coding)：键值编码 是一种通过字符串间接访问对象的方式（即给属性赋值）</span><br><span class="line">   	举例说明：</span><br><span class="line">   	stu.name = @&quot;张三&quot; // 点语法给属性赋值</span><br><span class="line">   	[stu setValue:@&quot;张三&quot; forKey:@&quot;name&quot;]; // 通过字符串使用KVC方式给属性赋值</span><br><span class="line">   	stu1.nameLabel.text = @&quot;张三&quot;;</span><br><span class="line">   	[stu1 setValue:@&quot;张三&quot; forKey:@&quot;nameLabel.text&quot;]; // 跨层赋值</span><br><span class="line">2). KVO(key-Value-Observing)：键值观察机制 他提供了观察某一属性变化的方法，极大的简化了代码。</span><br><span class="line">     KVO只能被KVC触发，包括使用setValue:forKey:方法和点语法。</span><br><span class="line">   // 通过下方方法为属性添加KVO观察</span><br><span class="line">   - (void)addObserver:(NSObject *)observer</span><br><span class="line">                     forKeyPath:(NSString *)keyPath</span><br><span class="line">                     options:(NSKeyValueObservingOptions)options</span><br><span class="line">                     context:(nullable void *)context;</span><br><span class="line">   // 当被观察的属性发送变化时，会自动触发下方方法</span><br><span class="line">   - (void)observeValueForKeyPath:(NSString *)keyPath</span><br><span class="line">                              ofObject:(id)object</span><br><span class="line">                                  change:(NSDictionary *)change</span><br><span class="line">                                 context:(void *)context&#123;&#125;</span><br><span class="line"></span><br><span class="line">KVC 和 KVO 的 keyPath 可以是属性、实例变量、成员变量。</span><br></pre></td></tr></table></figure>



<p><strong>ViewController生命周期</strong></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">按照执行顺序排列：</span><br><span class="line">1. initWithCoder：通过nib文件初始化时触发。</span><br><span class="line">2. awakeFromNib：nib文件被加载的时候，会发生一个awakeFromNib的消息到nib文件中的每个对象。</span><br><span class="line">3. loadView：开始加载视图控制器自带的view。</span><br><span class="line">4. viewDidLoad：视图控制器的view被加载完成。</span><br><span class="line">5. viewWillAppear：视图控制器的view将要显示在window上。</span><br><span class="line">6. updateViewConstraints：视图控制器的view开始更新AutoLayout约束。</span><br><span class="line">7. viewWillLayoutSubviews：视图控制器的view将要更新内容视图的位置。</span><br><span class="line">8. viewDidLayoutSubviews：视图控制器的view已经更新视图的位置。</span><br><span class="line">9. viewDidAppear：视图控制器的view已经展示到window上。</span><br><span class="line">10. viewWillDisappear：视图控制器的view将要从window上消失。</span><br><span class="line">11. viewDidDisappear：视图控制器的view已经从window上消失。</span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="http://www.cnblogs.com/bossren/p/6401067.html">http://www.cnblogs.com/bossren/p/6401067.html</a></p>
<p><strong>iOS多线程技术有哪几种方式？</strong></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">答：pthread、NSThread、GCD、NSOperation</span><br></pre></td></tr></table></figure></div></article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:undefined">kyren</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="http://huluo666.gitee.io/2017/03/30/iOS基础知识/">http://huluo666.gitee.io/2017/03/30/iOS基础知识/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="http://huluo666.gitee.io">Kyren's Blog</a>！</span></div></div><div class="post-meta__tag-list"></div><nav id="pagination"><div class="prev-post pull-left"><a href="/2017/03/31/myapp/"><i class="fa fa-chevron-left">  </i><span>MyAPPPMacApp</span></a></div><div class="next-post pull-right"><a href="/2017/03/30/iOS%E5%BC%80%E5%8F%91%E8%BE%85%E5%8A%A9/"><span>iOS开发辅助</span><i class="fa fa-chevron-right"></i></a></div></nav></div></div><footer><div class="layout" id="footer"><div class="copyright">&copy;2022 By kyren</div><div class="framework-info"><span>驱动 - </span><a target="_blank" rel="noopener" href="http://hexo.io"><span>Hexo</span></a><span class="footer-separator">|</span><span>主题 - </span><a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/hexo-theme-melody"><span>Melody</span></a></div><div class="footer_custom_text">hitokoto</div><div class="busuanzi"><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span id="busuanzi_container_page_pv"><i class="fa fa-file"></i><span id="busuanzi_value_page_pv"></span><span></span></span></div></div></footer><i class="fa fa-arrow-up" id="go-up" aria-hidden="true"></i><script src="https://cdn.jsdelivr.net/npm/animejs@latest/lib/anime.min.js"></script><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@latest/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-ui-pack@latest/velocity.ui.min.js"></script><script src="/js/utils.js?version=1.9.0"></script><script src="/js/fancybox.js?version=1.9.0"></script><script src="/js/sidebar.js?version=1.9.0"></script><script src="/js/copy.js?version=1.9.0"></script><script src="/js/fireworks.js?version=1.9.0"></script><script src="/js/transition.js?version=1.9.0"></script><script src="/js/scroll.js?version=1.9.0"></script><script src="/js/head.js?version=1.9.0"></script><script src="/js/search/local-search.js"></script><script>if(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
  $('#nav').addClass('is-mobile')
  $('footer').addClass('is-mobile')
  $('#top-container').addClass('is-mobile')
}</script><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a target="_blank" rel="noopener" href="https://github.com/wzpan/hexo-generator-search" style="color:#49B1F5;">hexo-generator-search</a>
 <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div></body></html>